# Sequential selection sort
def seq_selection_sort(list):
    for i in range(len(list)):
        min = list[i];
        for j in range(i+1, len(list)):
            if min > list[j]:
                # Swap
                tmp = min
                min = list[j]
                list[i] = list[j]
                list[j] = tmp
    return list